<?php 
session_start();
/*  echo '<pre>';
print_r($_SESSION); exit;
echo '</pre>'; */ 
if($_SESSION["loggedin"]==true && $_SESSION["role"]=="admin")
{
echo 'test';
}
else
{
header('Location: login.php');
}


?>